package com.yami.shop.personnft.common.dao;

import com.yami.shop.personnft.common.model.ShowroomNft;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShowroomNftMapper {
    long countByExample(@Param("record") ShowroomNft record);

    int deleteByPrimaryKey(@Param("id") Integer id);

    int insert(ShowroomNft record);

    int insertSelective(ShowroomNft record);

    List<ShowroomNft> selectByExample(@Param("record") ShowroomNft record);

    ShowroomNft selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(@Param("record") ShowroomNft record);

    int updateByUserId(@Param("record") ShowroomNft record);

    int updateByUserIdAndStatus(@Param("record") ShowroomNft record);

    ShowroomNft getPraiseByUserId(@Param("userId") String userId);

    //查询展厅列表
    List<ShowroomNft> selectShowInfoById(@Param("id") Integer id);
}